package com.lening.security.service.impl;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.lening.common.base.BaseServiceImpl;
import com.lening.security.dao.ProjectDAO;
import com.lening.security.dto.ProjectDTO;
import com.lening.security.po.ProjectPO;
import com.lening.security.service.IProjectService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Service;

/**
 * @author 赵子豪
 * @date 2024年06月04日 08时58分05秒
 * 巡检项目
 */
@Slf4j
@Service
public class ProjectServiceImpl  extends BaseServiceImpl<ProjectDAO, ProjectPO, ProjectDTO> implements IProjectService {
    @Autowired
    private ProjectDAO projectDAO;

    @Value("${file.path}")
    private String filePath;

    @Value("${server.port}")
    private String port;

    @Override
    public Page<ProjectDTO> projectpage(ProjectDTO projectDTO) {
        return projectDAO.projectpage(projectDTO);
    }

    @Override
    public Page<ProjectDTO> get(ProjectDTO projectDTO) {
        return projectDAO.get(projectDTO);
    }

    //文件上传
//    @Override
//    public Map<String, String> upload(MultipartFile file) {
//        return FileUploadUtil.upload(file,filePath,port);
//    }
}